<?php
/**
 * +------------------------------
 * Created by PhpStorm.
 * +------------------------------
 * User: xxx
 * +------------------------------
 * DateTime: 2019/12/6 13:24
 * +------------------------------
 */

/*require __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/app/config/define.php';

use App\controllers\UserController;
use Core\BeanFactory;
use Core\init\RouterCollect;

try {
    BeanFactory::init();

    $a = BeanFactory::getBean(UserController::class);
    var_dump($a);

    //@var RouterCollect $r

    $r = BeanFactory::getBean(RouterCollect::class);
    var_dump($r);
    var_dump($r->routes);

} catch (Exception $e) {
}
*/


//$a = pathinfo(__FILE__);
//
//var_dump($a);


$a = ['a' => 1, 'b' => 2];
$b = ['a' => 1, 'c' => 2];

$s = array_diff_key($a, $b);

if (empty($s)) {
    echo 111;
}

print_r($s);